<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>九九乘法表</title>
    <style>
        td{
            border:2px solid indigo;
            padding: 10px 10px;

        }
        table{
            border-collapse: collapse;
        }
    </style>
</head>
<body>
<script>
    document.write("<table>");
    for (var i = 0;i<=9;i++){
        document.write("<tr>");
        for (var a = 1;a<=i;a++){
            document.write("<td>");
            document.write(a+"*"+i+"="+a*i);
            document.write("</td>");
        }
        document.write("</tr>");
    }
    document.write("</ table>");
</script>
</body>
</html>